<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>
  function fn1(){
      return 1;
  }

  console.log(fn1());


  function fn2(){
      return Promise.resolve(2);
  }

  async function fn3(){
      // const result = await 3;
      const result = await fn2();
      console.log(result);
  }

  fn3();
</script>
</body>
</html>
